home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / import1a / form2.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1999-10-20  |  1.1 KB  |  38 lines

  1. VERSION 5.00
  2. Begin VB.Form Form2 
  3.    BorderStyle     =   4  'Fixed ToolWindow
  4.    Caption         =   "Open A Hyperlink On Load"
  5.    ClientHeight    =   705
  6.    ClientLeft      =   45
  7.    ClientTop       =   330
  8.    ClientWidth     =   3090
  9.    LinkTopic       =   "Form2"
  10.    MaxButton       =   0   'False
  11.    MinButton       =   0   'False
  12.    ScaleHeight     =   705
  13.    ScaleWidth      =   3090
  14.    ShowInTaskbar   =   0   'False
  15.    StartUpPosition =   3  'Windows Default
  16.    Begin VB.CommandButton Command1 
  17.       Caption         =   "E&xit"
  18.       Height          =   495
  19.       Left            =   120
  20.       TabIndex        =   0
  21.       Top             =   120
  22.       Width           =   2895
  23.    End
  24. Attribute VB_Name = "Form2"
  25. Attribute VB_GlobalNameSpace = False
  26. Attribute VB_Creatable = False
  27. Attribute VB_PredeclaredId = True
  28. Attribute VB_Exposed = False
  29. Private Sub Command1_Click()
  30. End Sub
  31. Private Sub Form_Load()
  32. Dim Scr_hDC As Long
  33. Dim DocName
  34. Scr_hDC = GetDesktopWindow()
  35. DocName = "www.vb.com"
  36. StartDoc = ShellExecute(Scr_hDC, "Open", DocName, "", "C:\", SW_SHOWNORMAL)
  37. End Sub
  38.